<template>
	<view class="coritem" v-for="list in companyList" @click="toFirm(list._id)">
		<view class="avatar">
			<image :src="list.logoUrl" mode=""></image>
		</view>
		<view class="corinfo">
			<view class="title">
				{{list.title}}
			</view>
			<view class="info">
				<view class="place">
					{{list.companyNumber}} |
				</view>
				<view class="year">
					{{list.companyType}} |
				</view>
				<view class="record ">
					{{list.companyNumber}}
				</view>
			</view>
			<view class="sort">
				<view v-for="welfare in list.welfare">
					{{welfare.title}}
				</view>
				

			</view>
			<view class="hot">
				<view>
					热招：
				</view>
				<view class="workname">
					前端工程师
				</view>
				<view>等52个岗位</view>
				<uni-icons class="forword" custom-prefix="custom-icon" type="forward" size="32rpx" color="#333"></uni-icons>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		props:["companyList"],
		name: "corporationItem",
		data() {
			
			return {

			};
		},
		onLoad() {
			
		},
		methods:{
			toFirm(id){
				uni.navigateTo({
					url: '/pages/firm/firm?id=' + id
				});
			
			}
		}
	}
</script>

<style lang="scss">
	.coritem {
		width: 690rpx;
		height: 290rpx;
		border-radius: 20rpx;
		padding: 30rpx;
		display: flex;
		background-color: #fff;
		box-shadow: 0rpx 0rpx 3rpx 4rpx #f7f7f7;
		margin-bottom: 30rpx;

		.avatar {
			margin-right: 20rpx;

			image {
				width: 80rpx;
				height: 80rpx;
				border-radius: 50%;
				img{
					width: 80rpx;
					height: 80rpx;
					border-radius: 50%;
				}
			}
		}

		.corinfo {
			width: 530rpx;

			.title {
				font-size: 36rpx;
				color: #000;
			}

			.info {
				display: flex;
				font-size: 24rpx;
				color: #b1b1b1;
				margin: 10rpx 0rpx;

				view {
					margin-right: 10rpx;
				}
			}

			.sort {
				display: flex;
				padding-bottom: 30rpx;
				border-bottom: 4rpx solid #f4f4f4;

				view {
					font-size: 24rpx;
					color: #b1b1b1;
					height: 50rpx;
					line-height: 50rpx;
					padding: 0rpx 20rpx;
					border-radius: 10rpx;
					background-color: #f4f4f4;
					margin-right: 10rpx;
				}

			}

			.hot {
				height: 80rpx;
				display: flex;
				align-items: center;
				position: relative;

				view {
					font-size: 24rpx;
					color: #333;
				}

				.workname {
					color: #65b159;
					// margin-left: 10rpx;
					margin-right: 6rpx;
				}

				.forword {
					position: absolute;
					top: 50%;
					right: -10rpx;
					transform: translate(0,-50%);
				}
			}
		}
	}
</style>
